package com.alangyun.remind.vo.user;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 轮岗/混岗视图
 *
 * @company 北京诚朗信息技术有限公司
 * @author hoobort klxukun@126.com
 * @datetime 2022年12月14日 下午2:26:22
 *
 */
public class JobView implements Serializable {

	private List<LimitSum> sums;
	private List<JobUser> users;
	
	public static JobView create() {
		JobView ret = new JobView();
		ret.sums = new ArrayList<>();
		ret.users = new ArrayList<>();
		
		return ret;
	}
		
	public List<LimitSum> getSums() {
		return sums;
	}
	public void setSums(List<LimitSum> sums) {
		this.sums = sums;
	}
	public List<JobUser> getUsers() {
		return users;
	}
	public void setUsers(List<JobUser> users) {
		this.users = users;
	}
	public static class LimitSum {
		private String name;
		private Integer fair=0;
		private Integer unfair=0;
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		public Integer getFair() {
			return fair;
		}
		public void setFair(Integer fair) {
			this.fair = fair;
		}
		public Integer getUnfair() {
			return unfair;
		}
		public void setUnfair(Integer unfair) {
			this.unfair = unfair;
		}
		
	}
	public static class JobUser {
		private String id; //erp编号
		private String name;//姓名
		private Integer age;//年龄
		private String unit; //单位
		private String depart; //部门
		private String group;//班组
		private String career;//所在专业
		private String job; //所在岗位
		private String otherJob; //混岗岗位
		private String jobDate; //上岗时间
		private String years; //在岗时长
		private String yearLimit; //轮岗年限
		private String remainYears; //距离轮岗年限
		public String getId() {
			return id;
		}
		public void setId(String id) {
			this.id = id;
		}
		public String getName() {
			return name;
		}
		public void setName(String name) {
			this.name = name;
		}
		
		public Integer getAge() {
			return age;
		}
		public void setAge(Integer age) {
			this.age = age;
		}
		public String getUnit() {
			return unit;
		}
		public void setUnit(String unit) {
			this.unit = unit;
		}
		public String getDepart() {
			return depart;
		}
		public void setDepart(String depart) {
			this.depart = depart;
		}
		public String getGroup() {
			return group;
		}
		public void setGroup(String group) {
			this.group = group;
		}
		
		public String getCareer() {
			return career;
		}
		public void setCareer(String career) {
			this.career = career;
		}
		public String getJob() {
			return job;
		}
		public void setJob(String job) {
			this.job = job;
		}
		public String getOtherJob() {
			return otherJob;
		}
		public void setOtherJob(String otherJob) {
			this.otherJob = otherJob;
		}
		public String getJobDate() {
			return jobDate;
		}
		public void setJobDate(String jobDate) {
			this.jobDate = jobDate;
		}
		public String getYears() {
			return years;
		}
		public void setYears(String years) {
			this.years = years;
		}
		public String getYearLimit() {
			return yearLimit;
		}
		public void setYearLimit(String yearLimit) {
			this.yearLimit = yearLimit;
		}
		public String getRemainYears() {
			return remainYears;
		}
		public void setRemainYears(String remainYears) {
			this.remainYears = remainYears;
		}
		
	}
}
